package com.example.demo.AliPay.Service.Impl;

import com.example.demo.AliPay.Bean.IntegralParameter;
import com.example.demo.AliPay.Bean.Order;
import com.example.demo.AliPay.Bean.SeckillNumsParameter;
import com.example.demo.AliPay.Mapper.AliPayMapper;
import com.example.demo.AliPay.Service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private AliPayMapper aliPayMapper;

    @Override
    public int insertOrders(Order order) {
        return aliPayMapper.insertOrders(order);
    }

    @Override
    public int updateOrders(String out_trade_no) {
        return aliPayMapper.updateOrders(out_trade_no);
    }

    @Override
    public int updateintegral(IntegralParameter integralParameter) {
        return aliPayMapper.updateintegral(integralParameter);
    }

    @Override
    public int updateOrdersStatus(Integer id) {
        return aliPayMapper.updateOrdersStatus(id);
    }

    @Override
    public String getStartTimeById(Integer id) {
        return aliPayMapper.getStartTimeById(id);
    }

    @Override
    public int getSeckillNums(Integer id) {
        return aliPayMapper.getSeckillNums(id);
    }

    @Override
    public int updateSeckillNums(SeckillNumsParameter seckillNumsParameter) {
        return aliPayMapper.updateSeckillNums(seckillNumsParameter);
    }
}
